package ferp.center.network;

import ferp.core.game.Bid;

/**
 * User: igorgok
 * Date: 12/5/12 9:36 AM
 */
public class RequestBidAdd
{
  public static final char UNKNOWN    = '?';
  public static final char NONE       = '-';
  public static final char PASS       = '*';
  public static final char PLAY       = 'T';
  public static final char MISERE     = 'M';

  public static char type(Bid.Type t)
  {
    switch (t)
    {
      case PASS:      return RequestBidAdd.PASS;
      case PLAY:      return RequestBidAdd.PLAY;
      case MISERE:    return RequestBidAdd.MISERE;
    }

    return UNKNOWN;
  }

  // profile ID
  public long profile;
  // configuration
  public String configuration;
  // hand in game
  public int hand;
  // cards in hand
  public int cards;
  // current pass penalty
  public int penalty;
  // bid result
  public char result;
  // last bid
  public char last;
  // starting tricks
  public int starting;
  // player's accumulated pool in the specified configuration
  public long pool;
  // player's score in the specified configuration
  public long score;

/*
  // tricks
  public int tricks;
  // trump
  public char trump;
*/
}
